<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <%@ page import="java.util.ArrayList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Veilingsite</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" media="screen"
	href="stylesheets/reset.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="stylesheets/stylesheet.css" />
</head>
<body>

	<div id="main">
		<jsp:include page="header.jsp" />
		Nieuwe Registratie
		
		<%
		ArrayList<String> errors = (ArrayList<String>)request.getAttribute("errors");
		if(!errors.isEmpty()){
			
			out.println("<br />");
			out.println("<br />");
			
			for(String e : errors){
				out.println(" -  " + e + "<br />");
			}
			
			out.println("<br />");
			out.println("<br />");
			
		}
		%>
		
		<form action="Registreer" method = "post">
			Voornaam: <input type="text" name="voornaam" value = "<%=(String)request.getAttribute("voornaam") %>"/><br />
			Achternaam: <input type="text" name="achternaam" value = "<%=(String)request.getAttribute("achternaam") %>"/><br />
			E-mail / Gebruikersnaam: <input type="text" name="email" value = "<%=(String)request.getAttribute("email") %>"/><br />
			Adres: <input type="text" name="adres" value = "<%=(String)request.getAttribute("adres") %>"/><br />
			Telefoon: <input type="text" name="telefoon" value = "<%=(String)request.getAttribute("telefoon") %>"/><br />
			
			Gewenst wachtwoord: <input type="password" name="wachtwoord" value = ""/><br />
			Herhaal wachtwoord: <input type="password" name="wachtwoordCheck" value = ""/><br />
			<p><button>Registreer</button></p>
		</form>
		
		
	</div>
</body>
</html>